Skip to content

fix: Update Vertex AI endpoint to use HTTP restriction config - #8680

Merged
pskiran1 merged 14 commits into
mainfrom
spolisetty/tri-669-psirt-triton-inference-server-vertex-ai-integration-access
Mar 7, 2026
Merged

fix: Update Vertex AI endpoint to use HTTP restriction config#8680
pskiran1 merged 14 commits into
mainfrom
spolisetty/tri-669-psirt-triton-inference-server-vertex-ai-integration-access

Conversation

@pskiran1

@pskiran1 pskiran1 commented Mar 2, 2026

Copy link
Copy Markdown
Member

What does the PR do?

This PR fixes the Vertex AI endpoint so that it properly respects the HTTP restriction configuration (--http-restricted-api and --http-max-input-size). Previously, Vertex AI was constructing its HTTPAPIServer base class with hardcoded defaults for these values; now the values are passed through from the user-configured HTTP settings.

Changes:

  • Updated VertexAiAPIServer::Create() and VertexAiAPIServer constructor to accept max_input_size and restricted_apis parameters.
  • Updated StartVertexAiService() in main.cc to read http_max_input_size_ and http_restricted_apis_ from global params (when HTTP is enabled) and pass them to VertexAiAPIServer::Create().
  • Added a new test section in qa/L0_vertex_ai/test.sh that verifies restriction enforcement on the Vertex AI redirect mechanism.

Checklist

  • PR title reflects the change and is of format <commit_type>: <Title>
  • Changes are described in the pull request.
  • Related issues are referenced.
  • Populated github labels field
  • Added test plan and verified test passes.
  • Verified that the PR passes existing CI.
  • Verified copyright is correct on all changed files.
  • Added succinct git squash message before merging ref.
  • All template sections are filled out.
  • Optional: Additional screenshots for behavior/output changes with before/after.

Commit Type:

Check the conventional commit type
box here and add the label to the github PR.

  • build
  • ci
  • docs
  • feat
  • fix
  • perf
  • refactor
  • revert
  • style
  • test

Related PRs:

Where should the reviewer start?

Test plan:

  • CI Pipeline ID: 45087013, 45512026

Caveats:

Background

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • closes GitHub issue: #xxx

@pskiran1
pskiran1 requested a review from Copilot March 2, 2026 11:36
@pskiran1 pskiran1 changed the title fix: update Vertex AI endpoints to use HTTP restriction config fix: Update Vertex AI endpoints to use HTTP restriction config Mar 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the Vertex AI endpoint so that it properly respects the HTTP restriction configuration (--http-restricted-api and --http-max-input-size). Previously, Vertex AI was constructing its HTTPAPIServer base class with hardcoded defaults for these values; now the values are passed through from the user-configured HTTP settings.

Changes:

  • Updated VertexAiAPIServer::Create() and VertexAiAPIServer constructor to accept max_input_size and restricted_apis parameters.
  • Updated StartVertexAiService() in main.cc to read http_max_input_size_ and http_restricted_apis_ from global params (when HTTP is enabled) and pass them to VertexAiAPIServer::Create().
  • Added a new test section in qa/L0_vertex_ai/test.sh that verifies restriction enforcement on the Vertex AI redirect mechanism.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/vertex_ai_server.h Added max_input_size and restricted_apis parameters to Create() and the private constructor. Updated copyright to 2026.
src/vertex_ai_server.cc Updated constructor and Create() implementation to accept and forward the new parameters to the base class. Updated copyright to 2026.
src/main.cc Added code to read HTTP config for max_input_size and restricted_apis (guarded by TRITON_ENABLE_HTTP) before calling VertexAiAPIServer::Create(). Updated copyright to 2026.
qa/L0_vertex_ai/test.sh Added setup for a restricted_single_model Python model repository and a comprehensive test section verifying that restricted APIs are correctly blocked/allowed on the Vertex AI redirect mechanism. Updated copyright to 2026.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main.cc
@pskiran1 pskiran1 added the PR: fix A bug fix label Mar 2, 2026
@pskiran1 pskiran1 changed the title fix: Update Vertex AI endpoints to use HTTP restriction config fix: Update Vertex AI endpoint to use HTTP restriction config Mar 2, 2026
@mattwittwer

Copy link
Copy Markdown
Contributor

LGTM

mattwittwer
mattwittwer previously approved these changes Mar 4, 2026
@pskiran1 pskiran1 self-assigned this Mar 5, 2026
Comment thread src/main.cc
Comment thread qa/L0_vertex_ai/test.sh Outdated
Comment thread qa/L0_vertex_ai/test.sh
@pskiran1
pskiran1 requested a review from yinggeh March 6, 2026 10:30
yinggeh
yinggeh previously approved these changes Mar 6, 2026

@yinggeh yinggeh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Left comment

Comment thread qa/L0_vertex_ai/test.sh Outdated
Co-authored-by: Yingge He <157551214+yinggeh@users.noreply.github.com>
@pskiran1
pskiran1 merged commit 6b0539b into main Mar 7, 2026
3 checks passed
@pskiran1
pskiran1 deleted the spolisetty/tri-669-psirt-triton-inference-server-vertex-ai-integration-access branch March 7, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix A bug fix

Development

Successfully merging this pull request may close these issues.

5 participants